#Hecho a mano

CC = gcc

CFLAGS =\
	 -Wall\
	 -pedantic\
	 -ansi

all: ksamp

cpu_info.o : cpu_info.c cpu_info.h
	$(CC) $(CFLAGS) -c cpu_info.c
	
kernel_info.o : kernel_info.c kernel_info.h
	$(CC) $(CFLAGS) -c kernel_info.c
	
process_info.o : process_info.c process_info.h
	$(CC) $(CFLAGS) -c process_info.c
	
parse.o : parse.c parse.h
	$(CC) $(CFLAGS) -c parse.c

time_info.o : time_info.c time_info.h
	$(CC) $(CFLAGS) -c time_info.c

system_info.o : system_info.c system_info.h  
	$(CC) $(CFLAGS) -c system_info.c

disk_info.o : disk_info.c disk_info.h
	$(CC) $(CFLAGS) -c disk_info.c
	
ejecucion.o : ejecucion.c ejecucion.h 
	$(CC) $(CFLAGS) -c ejecucion.c
	
ksamp : main.c system_info.o cpu_info.o kernel_info.o process_info.o parse.o time_info.o disk_info.o ejecucion.o
	$(CC) $(CFLAGS) -o ksamp main.c *.o


.PHONY clean:
clean:
	rm  *.o *~  ksamp
